import request from '@/utils/request'

// 查询出库单详情列表
export function listDetail(query) {
  return request({
    url: '/wms/orderdetail/list',
    method: 'get',
    params: query
  })
}

// 查询出库单详情列表
export function ordersList(query) {
  return request({
    url: '/wms/orderdetail/orderList',
    method: 'get',
    params: query
  })
}

// 查询出库单详情详细
export function getDetail(id) {
  return request({
    url: '/wms/orderdetail/' + id,
    method: 'get'
  })
}

// 新增出库单详情
export function addDetail(data) {
  return request({
    url: '/wms/orderdetail',
    method: 'post',
    data: data
  })
}

// 修改出库单详情
export function updateDetail(data) {
  return request({
    url: '/wms/orderdetail',
    method: 'put',
    data: data
  })
}

// 删除出库单详情
export function delDetail(id) {
  return request({
    url: '/wms/orderdetail/' + id,
    method: 'delete'
  })
}
// 看板数据统计查询
export function selectStatusChuku(status) {
  return request({
    url: '/wms/orderdetail/s/' + status,
    method: 'get'
  })
}